package com.design.pattern.factoryMethod.factory;

import com.design.pattern.factoryMethod.car.Benz;
import com.design.pattern.factoryMethod.car.Car;

/**
 * 奔驰汽车工厂
 */
public class BenzFactory implements BaseCarFactory {
    @Override
    public Car getCar() {
        return new Benz();
    }

    @Override
    public void getCarTire() {
        System.out.println("生产一个奔驰轮胎");
    }
}